import java.util.Arrays;
import java.util.List;
import java.util.stream.Collectors;

class Demo3_1_4_3 {
    @SuppressWarnings("SimplifyStreamApiCallChains")
    public static void main(String[] args) {
        List<Person> list = Arrays.asList(
                new Person("张三", 12)
                , new Person("李四", 11)
                , new Person("王五", 11)
                , new Person("赵六", 11)
        ).stream().collect(Collectors.toList());
        System.out.println(list);
    }
}

